package org.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private int id;

    private String name;
    private String password;
    private String imageUrl;
    private LocalDate birthday;
    private String classCode;
    private String grade;
    private String major;
    private String classId;
    private String classRole;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public Map<String, Object> toMap() {
        Map<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("name", name);
        map.put("classCode", classCode);
        return map;
    }
}
